package com.masterclient.app.businessmodule.vipmodule.financial_management.contract;


import com.eoner.baselib.container.CommonBaseResponse;
import com.eoner.baselib.presenter.FCBaseCallBack;
import com.masterclient.app.businessmodule.vipmodule.financial_management.api.FinancialService;
import com.masterclient.app.businessmodule.vipmodule.financial_management.bean.BankCardBean;

import java.util.List;

public class BankListPresenter extends BankListContract.Presenter {
    @Override
    public void getData() {
        mRxManager.add(toNewSubscribe(FinancialService.getInstance().bankCardList(), new FCBaseCallBack<CommonBaseResponse<List<BankCardBean>>>() {
            @Override
            public void onSuccess(CommonBaseResponse<List<BankCardBean>> obj) {
                mView.showData(obj.getData());
            }
        }));
    }
}
